home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
progs
/
editor
/
frexxed
/
fpl
/
renamesymbol.fpl
< prev
next >
Wrap
Text File
|
1995-07-25
|
610b
|
26 lines
{
string array[1];
string name, newname;
int antal;
int loop=1;
while (loop) {
antal=GetList("symbols", &array);
Sort(&array);
if (RequestWindow("Rename/Delete symbol",
"Old symbol", "a", &array, &name, antal,
"New name", "a", &newname)) {
if (rename(name, newname))
loop=Request("Symbol already defined!", "", "Mistake|ignore");
else {
if (!strlen(newname))
ReturnStatus("Symbol deleted!");
else
ReturnStatus("Symbol renamed!");
loop=0;
}
} else
loop=0;
}
}